using System;
using System.Collections.Generic;
using System.Text;

namespace ACS.Compiler.Tree.Impl
{
    public class FormalParameter : TreeBase
    {
        private TypeDeclarer _type;
        private string _name;

        public new TypeDeclarer Type
        {
            get { return _type; }
        }

        public string Name
        {
            get { return _name; }
        }

        public override void MatchIdent(Ident ident)
        {
            _name = ident.ToString();
        }

        public override void MatchTypeDeclarer(TypeDeclarer declarer)
        {
            _type = declarer;
        }

        public override TreeTags Tag
        {
            get { return TreeTags.FormalParameter; }
        }
    }
}
